package net.goutalk.glcs.module.bi.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import net.goutalk.glcs.module.bi.entity.VisualConfig;
import net.goutalk.glcs.module.bi.mapper.VisualConfigMapper;
import net.goutalk.glcs.module.bi.service.IVisualConfigService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 可视化配置表 服务实现类
 * </p>
 *
 * @author zjq
 * @since 2022-09-21
 */
@Service
public class VisualConfigServiceImpl extends ServiceImpl<VisualConfigMapper, VisualConfig> implements IVisualConfigService {

    @Override
    public VisualConfig getByVisualId(Long id) {
        QueryWrapper<VisualConfig> queryWrapper = new QueryWrapper();
        queryWrapper.lambda().eq(VisualConfig::getVisualId, id);
        return baseMapper.selectOne(queryWrapper);
    }
}
